public class AddMapOperation extends MapMemory
{

    private static final long serialVersionUID = -5503677507371933438L;
    private int mapPos;

    public AddMapOperation(Map object, MapPanel enclosingPanel, int mapPos)
    {
	super(object, enclosingPanel);
	this.mapPos = mapPos;
    }

    @Override
    public void undo()
    {
	this.enclosingPanel.deleteMap((Map) this.value);

    }

    @Override
    public void redo()
    {
	this.enclosingPanel.insertMap((Map) this.value, this.mapPos);

    }

}
